Functions expressed in equation form should behave similarly to equations and algebraic expressions. As with equations, functions can also be combined to form new functions by performing basic arithmetic operations such as addition, subtraction, multiplication, and division.
In this section, since we will be dealing with multiple functions, utilizing the notation of functions will be instrumental. By naming each function uniquely, we can keep track of the functions we are currently working on.
The sum, difference, product and quotient of two functions $f(x)$ and $g(x)$ are:
$$\begin{align} & \text{Sum} & (f+g)(x) &= f(x)+g(x) \label{eq:sum of functions}\\ & \text{Difference} & (f-g)(x) &= f(x)-g(x) \label{eq:diff of functions}\\ & \text{Product} & (f \cdot g)(x) &= f(x) \cdot g(x) \label{eq:prod of functions}\\ & \text{Quotient} & \br{ \frac{f}{g} } \! (x) &= \frac{f(x)}{g(x)} , \quad where: \, g(x) \neq 0 \label{eq:quo of functions} \end{align}$$
For example, given two functions $\tcA{f(x)=2x+5}$ and $\tcB{g(x)=3x-4}$, determine $(f+g)(x)$
The notation $(f+g)(x)$ simply means $\tcA{f(x)}+\tcB{g(x)}$, which we can refer from Equation 1. Thus,
\[\begin{align*} (f+g)(x) &= \tcA{f(x)}+\tcB{g(x)} \\ &= \tcA{(2x+5)}+\tcB{(3x-4)} \quad \tcAal{replace $f(x)$ and $g(x)$} \\ &= 2x+5+3x-4 \\ &= 5x+1 \end{align*}\]Hence, $(f+g)(x) = 5x+1$
$\example{1}$ If $ f(x)=x+2 $ and $ g(x)=x-1 $, find: a. $ (f+g)(x) $, b. $ (f-g)(x) $, c. $ (g-f)(x) $, d. $ (f \cdot g)(x) $, e. $ \br{ \frac{f}{g} } (x) $, f. $ \br{ \frac{g}{f} } (x) $
$\solution$
$\For{a}$
Use Equation 1,
$\For{b}$
Use Equation 2,
$\For{c}$
Use Equation 2,
$\For{d}$
Use Equation 3,
Multiply the two binomials using the ``FOIL Method’’
\[\begin{align*} &= x^2-x+2x-2 \\ &= x^2+x-2 \tagans \end{align*}\]$\For{e}$
Use Equation 4,
$\For{f}$
Use Equation 4,
$\example{2}$
If $ f(x)=x^2+2x $ and $ g(x)=x+1 $, find:
a. $ (f+g)(3) $,
b. $ (f-g)(5) $,
c. $ (g-f)(-2) $,
d. $ (f \cdot g)\br{ \frac{1}{3} } $,
e. $ \br{ \frac{f}{g} } (4) $,
f. $ \br{ \frac{g}{f} } \br{ -\frac{1}{2} } $
$\solution$
$\For{a}$
Use Equation 1,
Replace $x$ with 3,
\[\begin{align*} (f+g)(3) &= \left[ (3)^2+2(3) \right]+[(3)+1] \\ &= 9+6+3+1\\ &= 19 \tagans \end{align*}\]$\For{b}$
Replace $x$ with 5,
$\For{c}$
Replace $x$ with $-2$,
$\For{d}$
Replace $x$ with $\frac13$,
$\For{c}$
Replace $x$ with $4$,
$\For{c}$
Replace $x$ with $-\frac12$,